package com.d3works.apps.supplychain.service;

import com.d3works.apps.account.db.AccountingSituation;
import com.d3works.apps.account.service.AccountingSituationService;
import com.d3works.apps.base.db.Partner;
import com.d3works.apps.sale.db.SaleOrder;
import com.d3works.exception.D3worksException;

public interface AccountingSituationSupplychainService extends AccountingSituationService {

  public void updateCustomerCreditFromSaleOrder(SaleOrder saleOrder) throws D3worksException;

  public AccountingSituation computeUsedCredit(AccountingSituation accountingSituation)
      throws D3worksException;

  public void updateUsedCredit(Partner partner) throws D3worksException;
}
